<template>
  <div>
    <NstdRadioGroup v-model="radio1" :options="options">
      <el-radio label="1" size="large" border>Option A</el-radio>
      <el-radio label="2" size="large" border>Option B</el-radio>
    </NstdRadioGroup>
  </div>
  <div style="margin-top: 20px">
    <NstdRadioGroup v-model="radio2" :options="options">
    </NstdRadioGroup>
  </div>
  <div style="margin-top: 20px">
    <NstdRadioGroup v-model="radio3" size="small" :options="options1">
      <el-radio label="1" border>Option A</el-radio>
      <el-radio label="2" border disabled>Option B</el-radio>
    </NstdRadioGroup>
  </div>
  <div style="margin-top: 20px">
    <NstdRadioGroup v-model="radio4" size="small" disabled :options="options2">
    </NstdRadioGroup>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
const options2 = [
  {
    type: 'radio',
    label: 3,
    value: 'Option A',
    border: true
  },
  {
    type: 'radio',
    label: 6,
    value: 'Option B',
    border: true
  }
]
const options1 = [
  {
    type: 'radio',
    label: 3,
    value: 'Option A',
    border: true
  },
  {
    type: 'radio',
    label: 6,
    value: 'Option B',
    border: true,
    disabled: true,
  }
]
const options = [
  {
    type: 'radio',
    label: 3,
    value: 'Option A',
    size: "large",
    border: true
  },
  {
    type: 'radio',
    label: 6,
    value: 'Option B',
  }
]

const radio1 = ref('3')
const radio2 = ref('3')
const radio3 = ref('3')
const radio4 = ref('3')
</script>
